package com.kehutong.material.entity;

import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;

import com.kehutong.material.enums.WelComeType;

/**
 * <pre>欢迎语界面<pre>
 * 
 * @author liuzhen (liuxing521a@163.com)
 * @createTime 2020年6月3日下午2:18:41
 */
@Table(value="t_welcome", comment="欢迎语", multi=true)
public class WelCome extends Entity {

	private static final long serialVersionUID = -4199158615335856473L;

	protected WelCome(String id) {
		super(id);
	}
	
	@Column(comment="分享类型")
	private WelComeType type;
	
	@Column(length=64, comment="消息标题")
	private String title;
	
	@Column(length=255, comment="消息描述")
	private String desc;
	
	@Column(length=255, comment="文字内容")
	private String content;

	@Column(comment="封面图片")
	private String picurl;
	
	@Column(length=255, comment="分享地址")
	private String url;
	
	@Column(comment="默认的欢迎语")
	private boolean defWelcome;
	
	@Column(comment="逻辑删除")
	private boolean deleted;

	public WelComeType getType() {
		return type;
	}

	public void setType(WelComeType type) {
		this.type = type;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public String getPicurl() {
		return picurl;
	}

	public void setPicurl(String picurl) {
		this.picurl = picurl;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public boolean isDefWelcome() {
		return defWelcome;
	}

	public void setDefWelcome(boolean defWelcome) {
		this.defWelcome = defWelcome;
	}

	public boolean isDeleted() {
		return deleted;
	}

	public void setDeleted(boolean deleted) {
		this.deleted = deleted;
	}
	
}
